package com.lzh.dlykserver.service.impl;

import com.lzh.dlykserver.manager.StatisticManager;
import com.lzh.dlykserver.result.NameValue;
import com.lzh.dlykserver.result.SummaryData;
import com.lzh.dlykserver.service.StatisticService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class StatisticServiceImpl implements StatisticService {

    @Resource
    private StatisticManager statisticManager;

    @Override
    public SummaryData loadSummaryData() {
        return statisticManager.loadSummaryData();
    }

    @Override
    public List<NameValue> getSaleFunnelData() {
        return statisticManager.getSaleFunnelData();
    }

    @Override
    public List<NameValue> getSourcePieData() {
        return statisticManager.getSourcePieData();
    }
}
